package day5;

import java.util.Scanner;

public class shishi {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入a");
		int a = scanner.nextInt();
		System.out.println("请输入个数");
		int b = scanner.nextInt();
		int f = 0, g = 0;

		for (int i = 0; i < b; i++) {

			f = f * 10 + a;
			g += f;

		}
		System.out.println(g);
	}

}
